package com.dbtimer.dbupdatespring.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.dbtimer.dbupdatespring.dao.DmSendCmdDao;
import com.dbtimer.dbupdatespring.entity.BaseConfigEntity;
import com.dbtimer.dbupdatespring.entity.SendCmdEntity;
import com.dbtimer.dbupdatespring.service.SendCmdService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author 11092
* @description 针对表【SendCmd】的数据库操作Service实现
* @createDate 2022-04-15 14:43:57
*/
@Service("sendCmdService")
public class SendCmdServiceImpl extends ServiceImpl<DmSendCmdDao, SendCmdEntity>
    implements SendCmdService {
    @Autowired
    DmSendCmdDao dmSendCmdDao;

    /**
     * @Author swx
     * @Description //取出达梦数据库SendCmd表的所有实体
     * @Date 23:39 2022/4/17
     * @Param []
     * @Return java.util.List<com.dbtimer.dbupdatespring.entity.SendCmdEntity>
     */
    @Override
    public List<SendCmdEntity> getAll(){
        QueryWrapper<SendCmdEntity> queryWrapper = new QueryWrapper<>();
        queryWrapper.select();
        return dmSendCmdDao.selectList(queryWrapper);
    }

}




